package com.zhuss.bean.bo.meeting.room;

import com.zhuss.common.BaseBo;
import com.zhuss.common.IdBo;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: zhushanshuo
 * @Date: 2020/2/13 20:00
 */
public class CreateRoomBo extends IdBo implements Serializable,BaseBo {

    /**
	 * 
	 */
	private static final long serialVersionUID = -4264628095912967157L;
	
	private String name;//会议室名称
    private String location;//会议室位置
    private Integer capacity;//会议室可容纳人数
    private List<Integer> demand;//需求
    private String other;//其它
    private String charges;//收费标准
    private Integer status;//状态
    private Integer area;//区域

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getCapacity() {
        return capacity;
    }

    public void setCapacity(Integer capacity) {
        this.capacity = capacity;
    }

    public String getDemand() {
        StringBuffer sb = new StringBuffer();
        if (demand != null && demand.size() > 0) {
            for (Integer item : demand) {
                sb.append(item);
                sb.append(",");
            }
            sb.deleteCharAt(sb.lastIndexOf(","));
        }
        return sb.toString();
    }

    public void setDemand(List<Integer> demand) {
        this.demand = demand;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public String getCharges() {
        return charges;
    }

    public void setCharges(String charges) {
        this.charges = charges;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getArea() {
        area = getConcurrentArea();
        return area;
    }

    public void setArea(Integer area) {
        this.area = area;
    }
}
